import torch
import torch.nn as nn
import torch.functional as F

class MyNet(nn.Module):
    def __init__(self):
        super(MyNet, self).__init__()
        self.layer1 = nn.Linear(28*28*1, 300)
        self.layer2 = nn.Linear(300, 10)
    def forward(self, x):
        x=F.relu(self.layer1(x))
        x = torch.sigmoid(self.layer2(x))
        return x
